﻿package com.gamemeal.geom {
	import flash.geom.Point;
	/**
	 * @author Colin
	 */
	public final class GeomUtils {
		public static const origin:Point = new Point(0,0);
		
		public static function degreeToRadian(degree:Number):Number{
			return degree * Math.PI/180;
		}
		
		public static function radianToDegree(radian:Number):Number{
			return radian * 180/Math.PI;
		}

		public static function random(num:int):int{
			return Math.round(Math.random()*num);
		}
	}
}
